Describe two ways in which lava flows can be controlled