Removed a print.
Made the program properly propogate errors.