Added command-line options + measure overall processing time.