Input validation for best.R implemented.