Anorectal physiology and perception were recorded through two sequences of rectal isobaric distension using an electronic barostat device to measure anal and rectal pressures , rectal volumes , and perception scores .