Added timer loop and search queue

Added timer loop and search queue