I don't get from the code what this does, care to add a comment here to elaborate?