Added console logs, debugging