Changed mask, added new SOA, fixed For loop problems