Fixed a stupid bug (liftA2 didn't do what I expected) and added a simplifiedMaxDepth.