The Knights Inn in South Portland is one of two motels the city is now allowing to stay open after previously denying licenses over what police claimed were too many reports of criminal activity. Credit: CBS 13

Two low-budget motels in South Portland will be allowed to stay open if they meet some new security standards.

The South Portland City Council voted last month not to renew the lodging licenses for the Knights Inn and Maine Motel on Main Street, citing drug and prostitution activity.

The owners of the motels agreed to six conditions in exchange for the city council reconsidering their previous denials and approving their license renewals.

The conditions include the installation of video surveillance equipment, taking steps to determine the identity of registered guests, and report suspected illegal activity to police.

An attorney for the motels says they’ve been targeted unfairly and are being blamed for guests’ bad behavior.

“They do not invite people in to overdose as anyone with any common sense would know and they do not encourage or tolerate prostitution,” David Lourie, attorney for motels, said.

The city council’s vote to allow the hotels to stay open under the new conditions was unanimous.

Follow the Bangor Daily News on Facebook for the latest Maine news.