Reducing logging to every 5 minutes, making it flush