Added Endlines and Modified logVelocity