Integer changed to Long because Integer do not support files bigger than 2GB.