Created closest_lots functions and added error logging on POSTs.