Takes command line arguments