Couldn't get alg to work. Need more test cases.