Adding operator // instead of / and refactoring some code.