Changes Task main method to run()