Update API to include hideStack and showStack interface. See #325