Add utiltiy functions.