This could be changed to a one-liner.