Added location data gathering and message sending on client side