Added the option to use f1 as fitness metric