Minor change in the mod commands function