Added missing definitions. Changed integer types, we don't need the type for such huge numbers.