Added a less sensitive alignment method