Would it be better to put $keyword first in the parameter list, as that's the only one that's required? (Also, thinking out aloud here, could we pass an array of parameters instead, so that we're not passing in too many? Your call!)