Add func to exec commands