Moved the calculation and the hints to separate methods