Adding autoClose option