The one with select() done