Moved code for different SN script types and added client scripts