Add further comments. Add local definition of FLAGS macro instead of using the one...