Updated the maskChecker and animationListener