Added temporary debug func in index just to log stuff easier