Fixed various issues with the stack, and added popArg