Stablizing code