Rework SDK script formula