Added static flag support.