Environment: add conveninence functions for the environment callback.