added function_input for the functions calls, which is a variant of a reference pointer and a entity pointer.