Fixing undefined functions [ci skip]