Fixed issue where lookup was static instead of using a var