Reimplement gridstack. See #60