Final version with Labels, before trigger checking. No unit tests