Some OO magic for the less code