Added printout message after calling the function