Adds basic ng state functionality.