Whether the motion to compel arbitration should be granted or denied is a matter that remains within the trial court's discretion. (6) We note that mandamus may issue if a court does not issue a ruling on a motion to compel arbitration within a reasonable period of time.