Added back seemingly unused function. Oops.