First working serial simulation