Change digits so that it works with self == 0 and has less than six lines