Refactored Display flags module.