Time measure and printing fixes