Removed debugging print statements. Code is much cleaner now.