First implementation of optional auto-dismiss