copy and pasted welding mask code here

Please get rid of the copy and pasted code by putting it all into a proc or something.