Public functions.