* add max stack option.