Added missing Math function, fixed vector errors