Replaced missing code