Download working, but ugly testing code