Added a lookup function. The regex is terrible.