Added delvar function