Allow the error level to be derived programmatically