Add more debug code and update version