Added alignment functions