First stable version.
The priority is now setting the flags.
Cleaned the code.
It might be the time to implement the set_flag - remove_flag functionality.