Added two queues (historyRec and pipeRec)