Adding shell code with edited rds.r