Add assert tools to debug the code