Now working with powers of 2