Fixed download functions.