Added function for getting angles