Added command line options parsing