There are a number of standard alignment utilities which do this now.