Cleaned up the file to make it clearer what it is accomplishing.