Participants were randomly allocated by sealed envelope to receive intraoperative morphine either guided by ANI via a protocol ( intervention group ) or guided by the anaesthetist with ANI concealed ( control group ) .