Added speed and rotate variables