Added error codes