Properly addresses bad codes