Added command line args support.