added setting function for animation speed and water level.