Spire extract script is now a function