Code for eABS simulation