I don't think class makes sense here, remove it
do not just add arguments, let it be explicit when the user wants them, this also fixed a random malloc error,... perl mortalizing stuff can be annoying