Added duration logging