Implements resetMetadata helper

Closes #370