Pattern guard to the rescue