Added console debugging