Added written and submission based APIs.