Removed limitation of power of two sizes only.