Fixed timing typo, added code for runs mode 0-3