Added function access control to function definition