Trying to figure out what this is doing