Change visibility of the functions to protected