This should become a function.