Changed '10000 * time.Millisecond' to '10 * time.Second'.
Rather elaborate refactor; not sure if it's actually better. :-)