Added spinorbitalignment to template