Moved environments to be last parameter of functions in Aml.