Added setup functions for extensions
Created stack extension