Added extend component and replace function.