Converted the size to long from int