Added command-line support.