Added speed boost to the single selector ($1) function.