Add doThrow method