Truncate file if over 2MB in size.