Added optional legends