Changed from syncing every 5 seconds to sync on file change