Move minstagib initialisation out of miscfunctions, part 1