Please declare that protected variable in begin of class.

Good catch. Otherwise code review seems ok.