Clean old code
Implement do_exit and do_tags