Added projectId in query to find device