Refinery: Converting Raw Inputs into Valuable Outputs