Changed public to protected and add default action