Wies's script fixed