Implementation cheat just to pass the test cases.