Success! Managed to get it to run completely without crashing! Had to
remove an unneccessary throw.