Refactor a little for clarity.