This approach should be fail-proof.