Simplifies the code a bit.