Removed the attachments directory, re-factored code into the record_distance_units function, and got the user's distance preference from their IP address.