Trying to reduce lines of code.