AMI QueuePause with reason

Hello all, long time lurker but now comming out of the wood works.

I have written an application that for a company i work with.
It is all working fine. Using the AMI protocol i can login, logout and pause agents.

However i would like to be able to pause with a reason. but i can’t seem to figure out this one.
Can someone provide me with some guidance??

All the best
Jason