Switched to mock for testing callbacks.