used SetResourceConstraints to set stack limit
Misc changes