Added the HORIZONTAL and VERTICAL unmasking.