Added snap method.