Some updates to the new vector rotation function that still needs finishing