LOWELL -- Most people just send flowers to a funeral, but Lowell police say a Nashua man brought a loaded handgun.

Lowell police were contacted on the morning of July 3 after an employee of Bayliss Funeral Home on Princeton Boulevard saw a silver and black handgun in the driver's side door of a black Mercedes in plain sight.

Eddie Pagan, who was attending the funeral of a family member, came outside and unlocked the car to allow police to seize the gun.

Although Pagan, 23, of Nashua, N.H., had a license to carry a firearm in New Hampshire, he wasn't licensed in Massachusetts.

When Pagan went to the Lowell Police Station later on to retrieve his gun, he was arrested and charged with carrying a loaded firearm without a license, carrying a firearm without a license, leaving an unattended firearm, improper storage of a large-capacity firearm , possession of ammunition without a firearms identification card, possession of a large-capacity firearm, and carrying a firearm without a license.

In Lowell District Court on Monday, Pagan was released on $1,500 cash bail on the condition that he not possess any firearms without a valid license.

A probable cause hearing is scheduled for Sept. 12.