Project ported to XC8 compiler