Added global time limit, defaults to 5 mins. Added global stop.