Updating Generate Code