Made scale_degrees a module variable