Addition of error code checker