Added --clear option