Fixes for caching length and console display