Needs a comment explaining what this is doing.