Added function for searching the dataqueue