Removed unneeded helper function.