Added a while operation