Finished the demographics logic (v1).