Added usefull 'until' function.