Removed redundant function (old code).