Added a utility function updated changes.