Added a modified select() wrapper