Added argument for setting alignment