Shorten the code a bit.