Define mask before type Reader.

So it's not in between type Reader and Reader's methods.