Include error handling.
Fix PBC function not treating $member as an object.