Added ability to specify element in spec as "anchor".