Updated Ult code to be way more accurate