Using application instead of output for error message