Add support for setenv