Added teh alignment code