Added build flag
Plus some tweeks including dynamic flag permissions (Everything still needs a good testing.
P.S. forgot to add new flag to register list, nbd.