added framework for creating requests and inserting them into the queue.