Implemented sending locations to backend.