An off-duty Painted Post-based New York state trooper was charged with driving while intoxicated after a crash early Thursday in the Village of Riverside.

Alex Krawczyk, 27, of Painted Post, was involved in an accident at approximately 2 a.m. Thursday on Pulteney Street in Riverside, according to Painted Post-based New York State Police.

Krawczyk was driving westbound when he lost control of the vehicle and drove off the left shoulder, causing the vehicle to hit two trees and overturn, troopers report.

He and his passenger, Shaun Fallon, 26, also of Painted Post, were both airlifted to Robert Packer Hospital in Sayre, Pa.

Police said both are still in the hospital, being treated for non-life-threatening injuries.

Krawczyk has been with the New York State Police for less than two years, according to state police.

The investigation into the crash is ongoing.