Added command line params parsing