Redesign the function.