Updated AlgorithmExtend and RuntimeLayer.