Changing put to sync in some cases