Added new functions to remote copy and remote execute.