Class functions.