Modifies the behaviour of computeFlatten (issue #2)