Implemented logic for our function-dependence chain.