Better Implementation of Flushing Logs and Push