Added AngularJS rules