Added a check for mint