WIP Add debug logs

Signed-off-by: Lewis Marshall <lewis@lmars.net>