Changed the division to floor division due to a bug.