Changed compiler fn resolution logic.