Initial implementation of flexWrap