Added state for callbacks.