Add stack reference class (borrowed from director package)