Added layer.temperature function