Added more to simulation code based on reference; unclear