Added submit check.

Fixes #18