Environment can be nil