Added move vector mask function.