Added ability to change sync mode