Added simulation for register