Using reflection to avoid compilation issues.