Added transformation to align points correctly