Updated logic.
Updated logic.

Co-Authored-By: Shaurita Hutchins <5474bd2f6e37b605412b57f18f4f1e2b0ab2a9e8@outlook.com>
datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts