Added 3-line version of this function.