Adding download file option and treating the cases of push replica.