Added align function