Update stack with MAX API.cpp