Fixed floating point errors + added bypass when lambda = 0