Complete Issue #10 - Error on invalid extension/mode