Added upper, lower and free-text internal functions.