Modified putDynamicItem to have a "layer" parameter.  This should been part of last PR, but oops.