Drivers are not allowed to use hand-held cell phones in Los Angeles, but stand-up comedian Randy Liedtke thought he would have some fun with the law and the police.

According to Yahoo!, Liedtke baked cookies in the shape of iPhones and then drove around the city, hoping to get pulled over by a cop.

He recorded his adventure on his Twitter page via a real cell phone.

While his prank started out well, it ultimately backfired on him (in true comic fashion).

On Wednesday, Liedtke tweeted:

Made iPhone Cookies to trick cops into pulling me over, I'll just take a bite and ask if cookies are against the law.

Just saw a police car going the other way. Gonna turn around and see if I can catch up and drive by it. #iphonecookie.

Took a bite out of the cookie. He was so confused and angry. Told me to hold tight, he is back in his car now.

Says I have a warrant for unpaid parking tickets? Making me go with him. Letting me text gf but Im tweeting this.

Liedtke completed his journey with a picture of himself and a citation outside a police station, along with the caption:

Wasn't worth it. I'm an idiot... No more iPhone Cookies

Sources: Yahoo! and Twitter