Not sure what the original intent of this code was, but it looked jank.