Implemented location upload code.