Removed sync, moved it to nio