Cleaning remote code part 1