Extension now handles formatting functions with more than 3 parameters
checks put in place for 3 and 6 parameters which should be enough