Added some Angular functions