Formatting issues,avoided hard coding num_logs