Added eqfn to rundata
Fixed a bug in afasroutines