Fix synchronize command so that it accepts an argument.