Added some simple print statements for error checking