Added error codes for reset