Better entity flag handling and showBounds is now flag too.