Change function from public to protected