This takes care of alignment etc.