Removed unused functions, stubbing out "stack" layer.