Finished up a first, compilable run of sort_place_queue and check_function_queue