Shortens an rather long line in customEvents