Added auto-saving every five seconds