Imported from https://github.com/ghostFaceKillah/expert-visualisation