Refactor code and add options parser.