Cleaned up the reflection API usage and started threading.