A prisoner was kept awake for four days.