Allow end func to have additional arguments