Fixed local calls, add 4th argument (Params) for the add_application tuple.