Removed unused helper function.