Cleaned up rootleaf conditions