Might be nice to factor this common 3 line pattern out.