Made rain a seperate procedure