Refactored downloadController to use NSURL