Corrections on funcion call.
Changing enviroment to local.