Added logs.
Added some typage hint.