Added functionality to link one to many