Another attempt to fix script