Moved the valueLookup functions to an external class which is compiled
separately.