Specify that "layer" option is an index