Make the function return a propper value.