Updated solution to accept 0 concentrations.