Change offset logic