Command line arguments and better error handling.