First cut at implementing bottom up analysis