Reduce code size by using helpers