Changed the taskQueue from non-static to static variable