Fixed GetMasksBasedOnVarChoose() function. Enabled activity sending and writing.