Now only outputs the common elements that are actually used