Got Rid of NextPowOfTwo Function