The document discusses introducing a STATCOM device in a photovoltaic (PV) grid system to improve power quality. A STATCOM, which is a type of Flexible AC Transmission System (FACTS) device, is proposed to be connected at the point of common coupling (PCC) along with a battery energy storage system (BESS). This is aimed to mitigate power quality issues like voltage variations and harmonics that can arise from integrating a intermittent power source like PV into the grid. The STATCOM regulates voltage and provides reactive power support, while the BESS helps maintain real power flow. It is argued this system provides better performance than existing approaches and has smaller size and lower cost.