Removed order dependency when extending an algorithm from another.