Moved protected methods to the end of the file.