Modified background task key management and added Queriable interface.