Custom class added before position calculation