Add restart link and command line parsing