Trying out snapping code.