Open up sync command to public for issue #84

Allows external classes to execute the sync command.