Refactored offset mixin.