This can go in its own function.