Fixed typo and added idle time logging