Kill dead code.
Don't pass mode to Connection anymore.
Restart timer after syncing.
Put preprocessed output into a class.