The output pad in rewrite fixed to a tab.
Removed the pad variable.