Added Konrad's changes to include shoulder orientation as well as head orientation