Code used in NDC Oslo presentation