Add command line args (taken from rossetacode.org)