Implement sync command.
Hook up sync command.