Setup of function call