Think I finally finished the sync code :D