Added select(...) debug functionality.