Modified some params to protected.