modified GetSubmissions which takes 2 arguments where 2nd argument is optional.