Removed some debug crap
Changed error message, still not very good conversion