Changed permissions and wrote download script. Has a null pointer error.