Everything is working when running the program for one option at a time