Changed to make errors more understandable