Refactored question logic.