Added block=True param to view.clear call.