Any advice on how to debug this?