Added reflection based dependency detection.