Wrote some services and additional directives.