Extract genExprs function