Adding preliminary orthographizing function.