Added console functionality