Converted size from int to uint so that we avoid the possiblity of having a negative size which I doubt.