Added autorotate script.