Changed whilst to forever for async.