Function updated.