How does the affiliate system work?