Added Dan Lowes selector code