Implemented async while.
Merge branch 'id/6'