Separated out main loop
Tabs->spaces