Changed return values to integers and changed all high, medium,lows to critical, major ,minor