In your modified code you are calling PI:INSERTPOINTBLOCK, passing value SCL1
SCL1 is defined after you call PI:INSERTPOINTBLOCK ; it should be defined before, otherwise wou will pass nil as a parameter value.
No wait,
SCL1 is a global variable defined after you are using it.