Added plugins, modified main program for debugging