removed 'temp' variable and applied changes to 'scale' variable
Changed default offset for sspc 511 line