This needs a comment explaining what it is doing, or needs to be clearer...