Add new constructor to StackMachine