#30 Replace function implemented.