Debugging and some doc in the code.