Import script from sanpi/spore