Added interface check in DFS factory