BARDSTOWN, Ky. (WHAS11) -- With the swift help of social media, a man accused of breaking into vehicles and setting them on fire is now behind bars.

Bardstown Police said they posted a video on Facebook Wednesday morning and in the video, a man could be seen breaking into a car and then burning it.

Within 24 hours of posting the video the suspect, Shane Helm, was arrested.

Helm is charged with wanton endangerment, arson, burglary. The video was viewed more than 19,000 times.