Adding legend.