Various additions.
Added stored procedure to repo.