changeDependency implementation was missing code.