Alternate between sync and async modes