Simplify use of alert