Nested functions.