Wrong error message
Redundant code removed
Better debug info
Better debug info 2