Added generics to BlockingQueue