Fixed DependencyProvider. Removed silly code.