Reverted back to the non module

Could not get the module working, so I reverted the main back to the way
it was