Not entirely sure what this does, I need to investigate and update.