Added alignment checking for params