Fix the resulted files names and added time measuring code.