While loop in Raise