First working version of pagealigner.