Utility functions in current state.