Fix cookie and add speed setting