Add docs and debug statement