How to integrate Affinity with Box