Extracted interaction map to function