Add clear flags command
Fix Shorten_prefix implementation for 4.00 & 4.01