Added selector implementation.