Added logs.
Script updated.