Added powerOfTwo functions