Yeah,it can be done easily. To change the base of the log to x ,all you need to do is divide log (1+tf) by log(x) in the code.Though from what I've read,the base of the log doesn't  affect the retrieval in any way.