Changed how parameters are passed to layers. The Params object now simplifies passing data between layers.