Set max stack size.