Finished grain purchasing code.