Need a comment saying what this function does and what the parameters are.