Add log functionality added.