Got smallest calculation working.