Fix formatcheck to accomodate for the optional 2nd argument.