Handle required elements (fixes #63)