Fix HAR start positions, convert some magic numbers to defines