Fix: Do not use native classes directly, but use reflection.