Refactor remote operation to read file