Added alignment processing