I think this code is in the wrong place. Why is it here?