Changed the function.