Modified core class to instantiate with command line input.