Generic flow scalar done, together with lame check