added params tuple as argument,added configuration parameter