Added a manual dismiss function.