Trying do detect error 5