Trying some debug code