Refactored everything, implemented orthodoxial division.