Function passed to protected