Some utility functions.

Changed.