Pass the environment around, instead of the node

Should fix #97