Modernizing code