- Added math for rotation. (semi-working).