Add diagram0 before and after