Added resolving of "env" exposed functions.