SALEM, Mass. (AP) — A lawyer for a Massachusetts man accused of trying to rob a sailboat with the help of a motor boat flying the iconic “skull-and-crossbones” pirate flag said his client thought he was going to a party.

The Salem News reports that attorney Paul Moraski argued in court hearing Monday that his client, 30-year-old Scott Stanton, of Gloucester, denies boarding the sailboat. Moraski said Stanton’s co-defendant, 37-year-old Stephen Jette, of Ipswich, is the one who boarded the boat.

READ MORE: Wellfleet Police Investigating Fatal Crash

Gloucester police said the pair boarded the sailboat at a transient mooring last week only to wake the sailboat owner. The owner later told police that the men’s boat was flying the pirates’ black-and-white flag.

READ MORE: Reports: Tom Brady 'Non-Committal' On Future, 'Possible' He Retires After Season

Both have pleaded not guilty to breaking and entering, threatening to commit a crime and witness intimidation.

MORE NEWS: Jimmy Garoppolo's 49ers Shock Aaron Rodgers' Packers To Earn Spot In NFC Title Game

(© Copyright 2011 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)