Found some old uncommitted code. Not sure what this does...