Added min_stack