Added while loop which accepts multiple statements as body.