Add compatibility functions for next-gen code style.