Legend feature added