Added a generic sync class.