TWIN: Make the island loading code more portable