Got the unmingify function working