Moved the cecho function away of the sync.php main script.