Add max_file_size setting. Addresses #5