Updated to cleanup logs that are empty