Some analytical stuff