In a bizarre (but somewhat unsurprising) twist of fate, a motorcyclist who recorded video of himself speeding away from a police car while wearing a court-ordered GPS anklet for an unrelated offense—and who then proceeded to post the video footage to YouTube—has been apprehended, tried, and sentenced to a four-year prison term.

Hamza Ali Ben Ali, of Plainfield, Illinois, successfully evaded a police officer’s attempt to stop his vehicle back in October 2012. Ali then waited two weeks before uploading to YouTube the seven-and-a-half minutes of uncut video footage shot from a camera affixed to his Honda CBR 1000 motorcycle, reports The Chicago Tribune.

The footage shows Ali’s motorcycle accelerating away from a police car with flashing lights after the officer signaled for him to stop at a gas station. The video footage then shows the officer break away from the pursuit only to catch up to the motorcyclist before again losing sight of the 31-year-old suspect as he sped away.

Ali—an Algerian citizen with prior convictions, including aggravated battery against a police officer and possession of a stolen motor vehicle—might have gotten away scot free since his motorcycle did not have plates, but the combination of information gleaned from the YouTube video and the GPS anklet led the cops to his doorstep.

“At his trial, authorities were able to sync location information from the anklet to the video and to video shot by the police officer. The GPS anklet not only placed Ali on the cycle but transmitted his speed, which hit 115 mph at one point prosecutors said,” reports The Tribune.

DuPage County Judge George Bakalis found the evidence against Ali “overwhelming” and appeared unsympathetic to the defendant’s position. Bakalis criticized Ali for posting the video of the chase, explaining, “you basically wanted to boast about it.” Bakalis then proceeded to hand down a four-year prison sentence.