Changed finally script to work