Rudimentary stack implementation at bytecode level