Execute map() in its own thread too.