Added stack, but function getFrame doesn't clear memory. Should fix that.