Added state functions.