PORTLAND, Maine (AP) — A Maine man charged with disorderly conduct for his loud whistling in downtown Portland has reached a deal with the city — he can whistle, but he can't linger in one spot and has to keep walking.

Robert Smith of Westbrook has been cited by police twice in the past year after businesses complained. He pleaded guilty last summer and reached a deal in court with the city to keep moving while he whistles.