Improve the error message, as it was not making sense
Add debug parameter