Added applyTo method