Removed Simulate code