Removed diagnostic print statements to resolve issue #5