New diagrams and code migration