It pecks at trees with its hard beak. You can get some idea of its mood or condition from the rhythm of its pecking.