Added snapToGrid stub