Added a directive.
Added a service.
Made a few tweaks.