I don't think he is in pain, he kicks his legs out and arches his back. He does eventually stop this and falls asleep in my arms and then I put him to bed but he wakes up 10-15 minutes later crying and then I try to settle him again, he falls asleep, I put him to bed and then 10-15 minutes later he is crying again. A nurse once told me to not let him fall asleep in my arms because he is waking up and not knowing where he is but if I put him in his cot before he is asleep he just cries.