Adding content from Jonas Strandstedt's SGCT reop