Added console.logs. delete not working again.