Replaced multiplication with bitshifts to reduce integer computation overhead