Updated the funtion to roll over degrees. Keep an eye on it...