SM start up code for Processing