Implemented n factor lookup.