77.This section amends section 147 of the 1995 Act. Section 147 now provides that the sheriff may on cause shown extend the period of 40 days in which the accused must be brought to trial where s/he is detained in custody. New subsections (2A) and (2B) provide that parties must be given an opportunity to be heard on any motion to extend the time limit but, where parties are agreed as to the extension, it provides that the sheriff may dispose of the application without hearing the parties.