05/30/14 ai fine-tuned code for flexibility.