Added optional sync mode