Fixed bug
Changed sector rounding to more efficient macros