Added executor for api>=11, so that it executes all threads at the same
time, api<11 should be fine anyway...