Functionality for angles included. Seems to be working.