Added threading for Android to allow bigger files and not the block main thread while working on them.