Makes first stored proc work in new way