Initial implementation of automatic setup of associations