Changed scorebefore to score -delta
changed reco to check for available flag.