Added time taking and printing