Prototype functions.