Made the stack loading work correctly.