Updates mas.lua for more functionality