Removed print statements
Moved declaration of ParseMetadataPass to a header