Reverted scripts code