Fixed issue with setting speed, and added functionality to set speed as a data attribute