Added auto dismiss option.