Try to use a better set of abstractions for computing the alignment