Changed errors to warnings in debug mode