Formatting, and memoize the squrt function.