Modified readqueue.php