Created a proper event and added location from core location
Changed the frequency of writes to the api to be based on 5 seconds