Fixed return error
Removed debugging output