Moved constants into variables for easy modification.