Change indent.
Add get_current_timeslot().
Add get_filename().
Usinge sprintf() to generate message.
Fix coding style.