Added new parameter for text align