Added method for file downloading