Merging of the three alignment macros into one