Finished modifying this to remove stuff we don't need.