Added default empty function if no replacement is required.