Tested version of signalsMask.lua