Update to submit map function