Change names of variables, and add constance for BED_COUNT