Adding autoOpen option