Protected

Updated protected. This include a fix for #43.

Protected could get a clean up. But I don't want to mix it with this pull.