Partial implementation of variable stack