added support to command line arguments.