Removed rounding to int in SSD function