Adding extract script