Added reflection to translator and removed switch statement