Made the program easier to test.