Environment and resource management