Added a function pair for dealing with powers of 2