Changed output to unsigned