Updated affiliate helper method