Disabled cursor timeout.
Added the possibility to supply a filename to directly save the contents to a file in chunks (useful for large files that can't fit in memory).