First attempt to implement account classification with flags