Timer code didn't work; wrote sketchy version.