Made the centralized method a little more accurate to the original code