TRENTON, N.J. (AP) — A man who sent child pornography to a federal agent posing as the mother of a young girl so she would arrange a webcam sex show in which the girl would perform sex acts on her father is now headed to prison.

New Jersey authorities say Andrew Derrickson received a seven-year state prison term on Friday. The 50-year-old Lindenwold man had pleaded guilty last month to distributing child pornography

Prosecutors say Derrickson engaged in an online chat in 2104 with the agent who posed as a mother with an 11-year-old daughter.

Derrickson sent the agent child porn videos and images in exchange for the “mother” arranging a webcam sex show in which the girl would perform oral sex on her father.

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)