Fixed carriage return bug as per issue #7.