The first thing I see is that >= 0should just be > 0.