Some changes for sending resume/pause events and make smoothly the transition