Cleanup. Move history buffer to bottom.