Refactoring runtime and stack from mustard.coffee