Updated warnings and error codes