Refactoring stored procedure result. Making it smplier to use.