Re-added deleted anvil code.