Tentative implementation of Chan.select