Should probably use a mixin here to avoid duplication.