`error` never gets initialized. Should we remove error handling here altogether?