Fixed indenting in synchronize action module code.
Code cleanup of synchonize module
Force set delegate to local if one is not defined.