Added byMap() function and support for select()