Adjusted to use exception handling! (and sys.argv)