Added basic support for a threaded executor