This is in a mixin. Couldn't think of another way of doing it as neatly