Changed the way the program works