Added command line app functionality.