Added console logs.