Downloading files programmatically made easy