Implemented much better #x select operator