Circling the target in Follow Mode

I am trying to get the copter to circle the target when the target stops moving in Follow Mode.
I have no idea how to get this working.
Can someone please help ?