Extend remote_file method