Finished SP2 script. Now SP1 to SP4 work correctly.