Add a submissions helper function.
Fixes to PR to make it work as intended.