Add --clear and --interactive flags to main