Fix naming in error message
Split processing of query and process workers