Extracting local and global parameters jointly.