toggle: Use named functions.