Protected attributes

Added protected attributes to perform proper compilation.