Added some lines to the main file to prepare for more rewriting. Nothing actually works yet