Implemented simulation, it works\!