That return type wasn't possible for that function
sstream is used in argument parsing
Change all instances of NULL to nullptr