This doesn't seem like it belongs in this function.