Implementing support for serializing deepest paths