PrintFunc now recognize public functions.