Changes for function parameters

Changed from apply to call. Sending an object instead of a list of
parameters.
func parameter updates