Fixed A syncing issue upon logging it, began the inital work on an API