Add options to control distance and vertices snap