Implemented max module stack size.