Added snapping to nodes.