Simplify nums array and add timer