Lets make this work as a module
Adding function to turn debug off