Added error codes to ExternalInput