Uppercased function names and removed some stuff that should not be used (cfform, ParagraphFormat etc).