A bit of code condensing.