Added new parameter for lineEndings