Added normalization logic and bits per dimension logic