Finished program without time measuring.