It looks like this function is called in two places. Are we sure that calling one means that the other definitely will not be called?