Hi again,
I don't like to shape someone else's practice, so I didn't say other than, more general things, like "practice level I active". For myself, I wouldn't do it before I go to bed. It wakes me up, if anything, to being very energy aware and open. I can't speak for all people's experience though. It might not work well for you before you go to bed. It 'is', the way to improve you state of being though. A bottom line effective method. I suggested something relaxing, more than a stimulation. I, myself, usually do active exercise, more in the morning, or at noon.
One also has to look at other aspects of lifestyle, like diet,,,,coffee intake, etc..
Insomnia can come from different things. Outside, or inside. Stick with this. There is an experiential side to qigong practice that brings greater understanding of self.
love,
gallen