Added main file and debug.  Untested though