Test timing script. Needs a lot of improvements, but it's a start.