Added debugging print statements.