Switch to STM map instead of channel for indexing thread. #137