Added synchronization function and drush command.