Fixed a problem with the sync to print.
Refactoring for clarity.