Changed enum's into flags

- Fixed undo