Changed the way chksum is applied