Moving timing to a shell script