Should encapsulate both of the fallback cases (this one and the one on line 170 below) into a common function.