Parsing the flags. Adding some logging on start