Increased chunk size to 10MB and fixed bugs related to logging.