Invoked the function with the arguments and code executes perfectly.