Added demo implementation for selection