SPOTSWOOD (AP) — A man who police say sneaked into a Middlesex County home and hid under a bed for three days before he was found was the ex-boyfriend of the homeowners' daughter.

Jason Hubbard (Spotswood Police)

Spotswood police say Jason Hubbard was charged with burglary in the incident, which occurred in May. He's also charged with theft of services because he allegedly charged his four cellphones in an electrical outlet under the bed.

Margaret Adamcewicz told ABC 7 that Hubbard dated her daughter five years ago. She says their relationship didn't end well and that Hubbard apparently picked their house to hide in because he was homeless.

Authorities say Hubbard entered the home May 7, when the homeowner took out the garbage. Hubbard remained jailed on $50,000 bail. It's not known if he has an attorney.

(Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)