Make SelectLayer() respond to layer name as well as index