Modified hooks method to accept config