Adapted scoring script to new interface.