Simple thread usage implemented w/ option to support max thread option