Changed the alignment procedure to rectify counter error