NEW YORK (CBSNewYork/AP) — Planet Fitness, a national chain of gym and fitness centers, will not offer unlimited indoor tanning to their members, as part of a settlement agreement with New York Attorney General Eric Schneiderman.

An investigation conducted by Schneiderman’s office revealed that the fitness company violated regulations requiring warnings, consent forms and free protective eye wear at several Planet Fitness locations.

READ MORE: Bob Dole, Former Senate GOP Leader And Presidential Nominee, Dies At 98

Planet Fitness will also provide training for employees operating the tanning equipment and pay $50,000 in penalties and legal costs as part of the agreement.

Unlimited tanning was offered to Planet Fitness members who had a black card membership. Black card memberships run for about $20 a month.

READ MORE: Gov. Lamont: Connecticut Man Who Tested Positive For Omicron Variant Has Mild Symptoms, Resting At Home

A Planet Fitness spokesperson said the company does not advertise or promote any benefits of tanning and that franchise owners were reminded to comply with regulations as soon as Schneiderman brought his concerns into the spotlight.

In April, Schneiderman filed lawsuits against tanning salons Portofino Spas and Total Tan. Scheiderman said both franchises falsely advertised indoor tanning by promoting it as a safe alternative to tanning outdoors.

MORE NEWS: Driver Killed When Car Collides With MTA Bus On Staten Island

(TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)