Modified errors in code