Added option to extract associations when extracting multiple associations