VERSION: Simplified for an easier integration

edslab contains the high end function