A man in China drove his car into a river just 10 minutes after passing his driving test.

The driver, identified as Zhang, veered off a narrow bridge with no guardrails in the city of Zunyi and crashed into the water. He was reportedly busy texting with friends who were congratulating him for getting his license when the accident happened, according to The Sun.

“While I was driving, I tried to grab my phone and read some messages while two people were in front of me on the bridge,” Zhang said. “I became nervous and turned left suddenly.”

Luckily, Zhang’s car stayed afloat long enough for him to be rescued. It was later lifted out of the river with the help of a crane. Zhang suffered a dislocated shoulder in the accident.

The Police are still investigating.

The punishment for texting while driving in China is the equivalent of a $25 fine and two demerit points.