Added GUI function to automask