More precise selector code