Added printout to check the result of the called function.